#pragma config(Sensor, in1,    Potentiometer,  sensorPotentiometer)
#pragma config(Sensor, dgtl1,  front_switch,   sensorTouch)
#pragma config(Sensor, dgtl2,  back_switch,    sensorTouch)
#pragma config(Motor,  port1,           left_motor,    tmotorVex393, openLoop, reversed)
#pragma config(Motor,  port6,           claw,          tmotorVex393, openLoop)
#pragma config(Motor,  port7,           arm,           tmotorVex393, openLoop)
#pragma config(Motor,  port10,          right_motor,   tmotorVex393, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
	wait1Msec(2000);
	while(true)
	{
		if(SensorValue[front_switch] && !SensorValue[back_switch])
		{
				motor[left_motor]=0;
				motor[right_motor]=62;
		}
		else if(!SensorValue[front_switch] && SensorValue[back_switch])
		{
				motor[left_motor]=64;
				motor[right_motor]=0;
		}
		else if(SensorValue[front_switch] && SensorValue[back_switch])
		{
				motor[left_motor]=64;
				motor[right_motor]=62;
		}
		else
		{
			motor[left_motor]=63;
			motor[right_motor]=0;
			wait1Msec(4);
			motor[right_motor]=62;
			motor[left_motor]=0;
			wait1Msec(2);
		}
	}
}
